import React from 'react';
import { Dices } from './types';
import { TypeStore, useStore } from './store';
export const GeneralContext = React.createContext({ store: {} } as any);

export const useContext: () => {
  store: ReturnType<typeof useStore>;
} = () => {
  return React.useContext(GeneralContext);
};
